//
//  AirSocketModel.h
//  AirCpp
//
//  Created by Penghao on 14-4-14.
//  Copyright (c) 2014年 PengHao. All rights reserved.
//

#ifndef __AirCpp__AirSocketModel__
#define __AirCpp__AirSocketModel__

#include <iostream>
#include "../AirObject/AirObject.h"
#include "../AirContainer/AirData.h"
#include "../AirContainer/AirDataStreamBuffer.h"

namespace AirCpp{
    class AirModel : public AirObject{
    protected:
        AirSize_t total_length;
        AirModel():total_length(sizeof(AirSize_t)){
            
        }
    public:
        virtual AirDataStreamBuffer *stream_buffer(){
            AirDataStreamBuffer *buffer = AirDataStreamBuffer::create_instream_buffer(total_length);
            return buffer;
        }
        
        virtual bool prase(AirDataStreamBuffer *strean_buffer){
            return true;
        }
    };
}
#endif /* defined(__AirCpp__AirSocketModel__) */
